import { createRouter, createWebHashHistory } from 'vue-router'

const router = createRouter({
    history:createWebHashHistory(),
    routes:[
        {
            path:'/',
            redirect:'/home'
        },
        {
            path:'/home',
            component:() => import('../views/Home.vue')
        },
        {
            path:'/data',
            component:() => import('../views/Data.vue')
        },
        {
            path:'/user',
            component:() => import('../views/User.vue')
        },
        {
            path:'/login',
            component:() => import('../views/Login.vue')
        },
        {
            path:'/detail',
            component:() => import('../views/Detail.vue')
        },
        {
            path:'/account',
            component:() => import('../views/Account.vue')
        },
        {
            path:'/about',
            component:() => import('../views/About.vue')
        },
    ]
})

export default router;